#ifndef __USR_BOARD_H
#define __USR_BOARD_H
#include "main.h"



/*
 *   ADC
 */
#define BAT_DET_CHECK (1U) //硬件改动去掉
#define LUAT_ADC_CH_CPU (-1)
#define LUAT_ADC_CH_VBAT    (-2)

/*
 *   SIF
 */
// #define ONE_LINE_SIF_PIN    HAL_GPIO_22

/*
 *   GPIO
 */
#define GNSS_STATUS_PIN         HAL_GPIO_3
#define LOCK_CTRL_PIN           HAL_GPIO_16
#define NET_STATUS_PIN          HAL_GPIO_1
#define ACC72_SW_PIN            HAL_GPIO_15
#define WHEEL_STATE_PIN         HAL_WAKEUP_0
#define BEEP_PIN                HAL_GPIO_14

void hard_ware_init(void);
void adc_dev_init(void);
void v_acc_ctrl(uint8_t sw);
void v_lock_ctrl(uint8_t sw);
uint8_t wheel_status_check(void);
void usr_delay_s(uint32_t sec);
void usr_delay_ms(uint32_t msec);
void gnss_led_ctrl(uint8_t sw);
void net_led_ctrl(uint8_t sw);
#endif /* __USR_BOARD_H */
